import java.util.Scanner;
	public class 小米手机 {
	  public static void  main (String[] args) {
	     /*
		 *现在有两款手机华为与小米需要做入库处理，我们需要编写一个程序来实现商品的入库，
	      *入库完成后，打印入库商品的详细信息并计算出入库商品的数量与入库商品总金额。
		 */
		      //华为手机
		  String  huaweiBrand ="华为";
		  double huaweiSize=5.5;
		  double huaweiPrice=3688.88;
		  String  huaweiConfig="8+128g 全面刘海屏";
		  //小米手机
		  String  xiaomiBrand ="小米";
		  double xiaomiSize=5.0;
		  double xiaomiPrice=2988.88;
		  String  xiaomiConfig="16+1T 全面屏";
		  //华为手机入库
		  System.out.println("品牌型号："+huaweiBrand);
		  System.out.println("尺寸："+huaweiSize);
		  System.out.println("价格："+huaweiPrice);
		  System.out.println("配置："+huaweiConfig);
		  Scanner sc1 = new Scanner(System.in);
		  System.out.println("请输入"+huaweiBrand+"手机的库存");
		  int huanweiCount=sc1.nextInt();
		  double huaweiTotal=huanweiCount*huaweiPrice;
		  System.out.println("库存"+huaweiBrand+"手机的总金 额:"+huaweiTotal);
		 //小米手机入库
		  System.out.println("品牌型号："+xiaomiBrand);
		  System.out.println("尺寸："+xiaomiSize);
		  System.out.println("价格："+xiaomiPrice);
		  System.out.println("配置："+xiaomiConfig);
		  System.out.println("请输入"+xiaomiBrand+"手机的库存");
		  int xiaomiCount=sc1.nextInt();
		  double xiaomiTotal=xiaomiCount*xiaomiPrice;
		  System.out.println("库存"+xiaomiBrand+"手机的总金额："+xiaomiTotal);
                	      //库存清单
                		  System.out.println("------------库存清单------------");
		  System.out.println("品牌型号   尺寸   价格            配置       库存数量   总价");
                		  System.out.println(huaweiBrand+"       "+huaweiSize+""+huaweiPrice+"  "+huaweiConfig+"      "+huanweiCount+""+huaweiTotal);
                          System.out.println(xiaomiBrand+"       "+xiaomiSize+""+xiaomiPrice+"      "+xiaomiConfig+"       "+xiaomiCount+""+xiaomiTotal);
                                		  System.out.println("---------------------------------");
		  int total=huanweiCount+xiaomiCount;
		  double totalMoney=huaweiTotal+xiaomiTotal;
	       //总库存数量与库存总价
		  System.out.println("总库存："+total);
		  System.out.println("库存总价："+totalMoney+"￥");
	  }
	}
